package com.yzc.model.DTO;

import jakarta.validation.Valid;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import java.util.Date;
import java.util.List;

@Data
public class HotelOrderDetail {
    @NotNull(message = "酒店ID不能为空")
    private Long hotelId;

    @NotNull(message = "入住日期不能为空")
    private Date checkinDate;

    @NotNull(message = "离店日期不能为空")
    private Date checkoutDate;

    @NotBlank(message = "房型不能为空")
    private String roomType;

    @NotNull(message = "房间数量不能为空")
    @Min(value = 1, message = "房间数量至少1间")
    private Integer roomCount;

    @Valid
    @NotNull(message = "入住人信息不能为空")
    private List<GuestInfo> guestInfo;
}

